{"version":3,"file":"seoadbuilder.bundle.map.js","names":["this","BX","exports","main_popup","ui_buttons","seo_ads_login","catalog_productSelector","main_core_events","ui_textcrop","main_core","ui_entitySelector","SeoAccount","options","_this","babelHelpers","classCallCheck","clientNode","avatarNode","accountNode","instagramAccountNode","linkNode","provider","componentName","signedParameters","uiNodes","_helper","Helper","getInstance","loaded","clientSelector","Seo","Ads","ClientSelector","clientBlock","selected","PROFILE","items","CLIENTS","canAddItems","events","onNewItem","LoginFactory","getLoginObject","login","onSelectItem","item","setProfile","onRemoveItem","logout","CLIENT_ID","createClass","key","value","listenSeoAuth","addCustomEvent","window","proxy","onSeoAuth","eventData","reload","getProvider","clientId","_this2","analyticsLabel","TYPE","connect","action","type","showBlock","request","logoutClientId","setSelected","setItems","setProvider","showBlockByAuth","_this3","i","length","client","toString","loadAccounts","_this4","disable","data","enable","accountNotice","ad","style","display","dropDownData","map","accountData","caption","util","htmlspecialchars","name","id","accountId","currency","fillDropDownControl","setTimeout","fireEvent","disabled","loadInstagramAccounts","_this5","instagram","pageId","page_id","actorId","actor_id","loadSettings","isSupportAccount","IS_SUPPORT_ACCOUNT","includes","push","showBlockMain","_templateObject","seoAccount","containerNode","mess","errorAction","Loc","getMessage","dlgBtnClose","requestData","callback","analytics","sendActionRequest","response","onResponse","error","apply","callbackSuccess","callbackFailure","showErrorPopup","ajax","runComponentAction","mode","then","text","console","log","popup","PopupManager","create","autoHide","lightShadow","closeByEsc","overlay","backgroundColor","opacity","onPopupClose","onErrorPopupClose","bind","buttons","Button","click","close","setContent","concat","show","blockCodes","Type","isArray","attributeBlock","blockNodes","toConsumableArray","querySelectorAll","forEach","blockNode","code","getAttribute","isShow","dataset","flex","showBlockRefresh","showBlockLogin","btn","AUTH_URL","setAttribute","PICTURE","nameNode","innerText","NAME","LINK","removeAttribute","HAS_AUTH","node","innerHTML","option","Tag","render","taggedTemplateLiteral","appendChild","getCreated","_instance","undefined","_templateObject$1","_templateObject2","_templateObject3","SeoAdBuilder","defineProperty","accountSelected","postSelected","pageSelected","audienceSelected","budgetSelected","toModeration","optionSelectedClass","containerId","context","onRequest","postListUrl","audienceUrl","crmAudienceUrl","pageConfigurationUrl","iBlockId","basePriceId","storeExists","isCloud","baseCurrency","arrows","document","price","_DEFAULT_CURRENCY","duration","completedStages","selectedRegions","loader","init","caller","change","loaderNode","inputNode","initiateUINodes","initiateAutoAudienceMode","_STAGES","deActivateStage","initiateAccounts","activateStage","initiateSwitcher","bindEvents","buildSelector","storeBlockShow","reInitAdCreator","adCreatorData","audienceConfig","crmAudienceConfig","clientInput","avatar","link","account","instagramAccount","profileConfigured","Event","addPost","openPostSlider","createLinks","createLink","hasPostLis","refreshButton","autoRemover","checker","select","checked","addClientBtn","arrow","addEventListener","switchCollapsed","checkCurrency","div","calculateTotal","changeAudienceMode","changeProductSelectionMode","audienceExpert","showAudienceExpertModeForm","productExpert","openTargetPageSlider","addProductBtn","toCreateStoreSlider","addCurrencyBtn","addCurrency","toModerationBtn","sendToModeration","UI","Hint","querySelector","accountLoader","instagramAccountLoader","errorNotFound","currencyBlock","audienceSummary","convert","nodeListToArray","budgetExpert","form","permalink","mediaId","targetUrl","page","body","adsId","budget","ageFrom","ageTo","genders","interests","imageUrl","instagramAccountId","segmentInclude","segmentExclude","regions","adsStoreBlock","addPostBtn","Switcher","size","usedCurrency","selectedIndex","currencyExists","event","checkInstagramAccount","target","parentNode","total","element","textContent","classList","remove","add","prepareCurrencyBlocks","scrollToStage","showCrmAudienceExpertModeForm","_this6","isShown","_this7","_this8","prepareCurrencyBlock","arguments","convertToCurrency","_key","targetCurrency","_this9","sourceCurrency","amount","Object","keys","_this10","exists","_this11","count","course","newCurrency","amountCnt","success","block","closest","content","contains","height","scrollHeight","clipTitle","title","nodeHeight","cleanNode","titleInner","a","offsetHeight","slice","onPostSelected","eventId","media_url","postItem","Text","encode","postListNode","addNewNode","previewNode","firstChild","removeChild","insertBefore","backgroundImage","postData","openSlider","sessid","bitrix_sessid","componentParams","ACCOUNT_ID","onTargetPageSelected","onFBAudienceConfigured","buildAudienceSummary","onCrmAudienceConfigured","cacheable","url","params","sliderOptions","width","allowChangeHistory","requestMethod","requestParams","eventName","SidePanel","Slider","getEventFullName","removeAllCustomEvents","Instance","open","summary","genderTitles","join","interest","formNode","client_id","countries","getElementById","JSON","stringify","include","exclude","_i","input","_i2","_input","submit","stageNum","stage","line","number","scrollIntoView","behavior","_this12","selector","TagSelector","dialogOptions","dropdownMode","compactView","showAvatars","recentTabOptions","stub","stubOptions","searchOptions","allowCreateItem","ItemOnSelect","entities","searchable","dynamicSearch","renderTo","getDialog","getRecentTab","setVisible","selectorOptions","iblockId","fields","fileInputId","config","ENABLE_SEARCH","ENABLE_IMAGE_CHANGE_SAVING","productSelector","ProductSelector","EventEmitter","subscribe","productSelectedEvent","_this13","fieldData","ID","_templateObject$2","SeoPostSelector","helper","last","stopLoading","loadInProgress","_accountId","_clientId","_type","emptyBlock","listContent","dataContent","Loader","hideListContentBlock","topSlider","getTopSlider","iframe","contentDocument","observer","IntersectionObserver","loadPostList","root","rootMargin","threshold","observe","successFn","hide","showEmptyListBlock","hideEmptyListBlock","showListContentBlock","postList","postListItem","postBlock","selectPost","TextCrop","rows","targetElement","removeClass","addClass","postMessage","SeoAudience","selectedInterest","rangeInput","inputMax","inputMin","MAX_VALUE","MIN_VALUE","setDoubleInputPosition","setDoubleLabelPosition","onDoubleInputRange","onInputRange","checkSex","label","children","offsetWidth","previousElementSibling","left","labelMaxLeft","getBoundingClientRect","labelMinLeft","min","Math","sum","customData","get","applyBtn","entries","entry","_entry","slicedToArray","max","SeoCrmAudience","senderSegmentSelector","selectorInclude","getTilesId","selectorExclude","PageConfiguration","targetUrlBlock","validateUrl","removeWait","cancel","test","Main","Catalog","EntitySelector"],"sources":["seoadbuilder.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,GACrB,SAAUC,EAAQC,EAAWC,EAAWC,EAAcC,EAAwBC,EAAiBC,EAAYC,EAA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